//
//  ViewOrderGoodTableViewCell.m
//  Youhuiju
//
//  Created by 余尚飞 on 16/9/8.
//  Copyright © 2016年 yutenys. All rights reserved.
//

#import "ViewOrderGoodTableViewCell.h"

@interface ViewOrderGoodTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *goodImg;//商品图
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;//商品名
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;//现价
@property (weak, nonatomic) IBOutlet UILabel *originalCostLabel;//原价
@property (weak, nonatomic) IBOutlet UILabel *sizeLabel;//尺码
@property (weak, nonatomic) IBOutlet UILabel *numberLabel;//数量

//适配
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *goodImgLeading;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *goodImgWid;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *goodImgHig;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *titleLabelLeading;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *priceLabelLeading;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *titleLabelWid;


@end

@implementation ViewOrderGoodTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.goodImgLeading.constant = 12 * FitW;
    self.goodImgWid.constant = 90 * FitW;
    self.goodImgHig.constant = 90 * FitH;
    
    self.titleLabelLeading.constant = 12 * FitW;
    self.titleLabel.font = [UIFont systemFontOfSize:12 * FitH];
    self.titleLabelWid.constant = 170 * FitW;
    
    self.priceLabelLeading.constant = 12 * FitW;
    self.priceLabel.font = [UIFont systemFontOfSize:12 * FitH];
    
    self.originalCostLabel.font = [UIFont systemFontOfSize:12 * FitH];
    
    self.sizeLabel.font = [UIFont systemFontOfSize:12 * FitH];
    
    
    
    
    
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setModel:(GoodModel *)model
{
    if (_model != model)
    {
        _model = model;
        
        DLog(@"model:%@---------",_model);
    }
}



@end
